package factoryMethod;

import bean.IPhone;
import bean.Phone;

//A Apple factory that build Iphone
public class IPhoneFactory implements Factory {
	
	//override the Factory's method so that this IPhoneFactory return  Iphone
	@Override
	public Phone getPhone() {//Phone is interface,we will get Iphone 
		return new IPhone();
	}

}
